package com.zk.shop.entity;

import java.io.Serializable;

/**
 * 分类实体类
 */
public class Sorts implements Serializable {
    private int sortsId;        //分类id
    private String sortsName;   //分类名称
    private String sortsDesc;   //分类描述
    private Sorts parent;       //父级分类

    public Sorts(String sortsName, String sortsDesc, Sorts parent) {
        this.sortsName = sortsName;
        this.sortsDesc = sortsDesc;
        this.parent = parent;
    }

    public Sorts(int sortsId, String sortsName) {
        this.sortsId = sortsId;
        this.sortsName = sortsName;
    }

    public Sorts() {
    }

    public Sorts(String sortsName) {
        this.sortsName = sortsName;
    }

    public Sorts(int sortsId) {
        this.sortsId = sortsId;
    }

    public Sorts(int sortsId, String sortsName, String sortsDesc, Sorts parent) {
        this.sortsId = sortsId;
        this.sortsName = sortsName;
        this.sortsDesc = sortsDesc;
        this.parent = parent;
    }

    public int getSortsId() {
        return sortsId;
    }

    public void setSortsId(int sortsId) {
        this.sortsId = sortsId;
    }

    public String getSortsName() {
        return sortsName;
    }

    public void setSortsName(String sortsName) {
        this.sortsName = sortsName;
    }

    public String getSortsDesc() {
        return sortsDesc;
    }

    public void setSortsDesc(String sortsDesc) {
        this.sortsDesc = sortsDesc;
    }

    public Sorts getParent() {
        return parent;
    }

    public void setParent(Sorts parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "Sorts{" +
                "sortsId=" + sortsId +
                ", sortsName='" + sortsName + '\'' +
                ", sortsDesc='" + sortsDesc + '\'' +
                ", parent=" + parent +
                '}';
    }
}
